package com.jpx.jxcbiz.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
 * <p>
 *
 * </p>
 *
 * @author Mht
 * @since 2020-02-24
 */
@Data
@Accessors(chain = true)
public class TCustomerReturnList extends Model<TCustomerReturnList> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Float amountPaid;

    private Float amountPayable;

    @DateTimeFormat(pattern = "yyyy-MM-HH")
    private Date customerReturnDate;

    private String customerReturnNumber;

    private String remarks;

    private Integer state;

    private Integer userId;

    private Integer customerId;

    @DateTimeFormat(pattern = "yyyy-MM-HH")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-HH")
    private Date endTime;

    /**
     * 商品名称
     */
    private String bname;

    /**
     * 商品编号
     * @return
     */
    private String ReturnNumber;
    /**
     * 商品名称
     * @return
     */
    private String name;

    /**
     * 商品单价
     * @return
     */
    private Integer price;

    /**
     * 商品数量
     * @return
     */
    private Integer num;

    /**
     * 商品总价
     * @return
     */
    private String total;

    /**
     * 商品型号
     * @return
     */
    private String model;

    /**
     * 商品单价
     * @return
     */
    private String unit;
    /**
     * 操作员
     */
    private String userName;

    private String code;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
